﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace amuudp
{
    public class CaptureScreen
    {

        public static Bitmap Capture(int width, int height)
        {
            return Capture(0, 0, width, height);
        }

        public static Bitmap Capture(int locationX, int locationY, int width, int height)
        {
            Bitmap bmp = new Bitmap(width, height);
            using (Graphics g = Graphics.FromImage(bmp))
            {
                g.CopyFromScreen(locationX, locationY, 0, 0, new Size(width, height));
            }
            return bmp;
        }

        public static Bitmap Compress(Bitmap bitmap, int width, int height)
        {
            return bitmap;
        }
    }
}
